perimeter and area of triangle